<?php
class FavoritesController extends AppController
{
  //var $scaffold;
  var $uses = array("Account", "Category", "Comment", "CookingMethod", "Favorite", "Recipe");
  var $helpers = array("Upload", "Javascript", "Form", "Html", "Ajax", "Teefan");
  var $components = array("RequestHandler");
  
  function get_favorite_count($recipe_id)
  {
    return $favorite = $this->Favorite->find("count", array("conditions" => array("Favorite.recipe_id" => $recipe_id)));
  }
}
?>
